package com.xju.subjectsystem.mapper;

import com.xju.subjectsystem.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @className: TeacherMapper
 * @package: com.xju.subjectsystem.mapper
 * @description: DONE : 数据库操作
 * @author: Eiard
 * @date: 2024-12-06 23:11
 */
@Mapper
public interface TeacherMapper {

    int deleteByPrimaryKey(String tno);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByPrimaryKey(String tno);

    Teacher selectByTel(String tel);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    int updateAccountStatusByPrimaryKey(@Param("tno") String tno, @Param("account_status") int account_status);
}